package com.longcai.service.impl.clyjuser;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.longcai.entity.auth.ClyjShopsArea;
import com.longcai.entity.auth.SysShopsRole;
import com.longcai.entity.nearby.ClyjNearbyGoodsType;
import com.longcai.mapper.SysShopsRoleMapper;
import com.longcai.mapper.clyjuser.ClyjShopsAreaMapper;
import com.longcai.service.clyjuser.ClyjShopsAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 商户代理地区表 服务实现类
 * </p>
 *
 * @author M
 * @since 2019-04-16
 */
@Service
public class ClyjShopsAreaServiceImpl extends ServiceImpl<ClyjShopsAreaMapper, ClyjShopsArea> implements ClyjShopsAreaService {

    @Autowired
    private ClyjShopsAreaMapper clyjShopsAreaMapper;

    /**
     * 修改
     *
     * @param clyjShopsArea
     * @return
     */
    @Override
    public Integer updateType(ClyjShopsArea clyjShopsArea) {
        try {
            return this.clyjShopsAreaMapper.updateById(clyjShopsArea);
        } catch (Exception e) {
            e.printStackTrace();
            e.getMessage();
        }
        return null;
    }
}
